<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="author" content="order by dede58.com"/>
    <title>我的购物车-有家书店</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <style>
        .ddxq{width: 918px;height: 120px;line-height: 120px;font-size: 17px;color:rgb(117,117,117);
            border-bottom: 1px solid #ccc;padding-left: 40px;}
        .ddxq .ddspt{width: 80px;height: 80px;margin: 19px 25px 0 0;border:1px solid #aaa;}
        .ddxq .ztxx ul li{display: inline-block;width: 130px;height: 60px;line-height:60px;float: left;border-left:1px solid #aaa; margin-top: 30px;text-align: center;}
        .ddxq .ztxx ul li a{color:rgb(117,117,117);}
        .ddxq .ztxx ul li a:hover{color:#ff6700;}
    </style>
</head>
<body>

<c:forEach items="${sessionScope.dingdanxiangqing}" var="obj" >
    <div class="ddxq">
        <div class="ddspt fl"><img width="80px" height="80px" src="${obj.get("url")}" alt=""></div>
        <div class="ddbh fl">订单号:${obj.get("ddbh")}</div>
        <div class="ztxx fr">
            <ul>
                <li>
                    <c:if test="${obj.status == 0}">
                        未发货
                    </c:if>
                    <c:if test="${obj.status == 1}">
                        已发货
                    </c:if>
                </li>
                <li>${obj.get("count")}</li>
                <li>${obj.get("ddate")}</li>
                <li><a>￥${obj.get("outprice")*obj.get("count")}</a></li>
                <div class="clear"></div>
            </ul>
        </div>
        <div class="clear"></div>
    </div>
</c:forEach>

</body>

<script src="${pageContext.request.contextPath}/layui/layui.all.js" charset="utf-8"></script>
<script>
    layui.use(['carousel','form','jquery','layer'], function(){
        var carousel = layui.carousel
        var form = layui.form;
        var $ = layui.jquery;
        var layer = layui.layer;

        function showtable(){
            $.ajax({
                type:'post',
                url:'${pageContext.request.contextPath}/dingdan/mydingdanxiangqing',
                dataType:'json',//预期的后台数据类型
                success:function (data) {
                    //alert(JSON.stringify(data));
                }
            })
        }

       $(function () {
            showtable();
        })
    });
</script>
</html>
